extends Timer

const CD: float = 5.0

func _ready() -> void:
	wait_time = CD

func _on_timeout() -> void:
	get_parent().BeamReady = true
	$"/root/Game/Sound/SkillReadySound".play()
	

func reduce(time_reduced: float):
	if get_parent().BeamReady:
		return

	if time_left > time_reduced:
		start(time_left - time_reduced)
	else:
		start(0.01)
	wait_time = CD
